package com.jxs.android.sxyw;

import android.os.Bundle;
import android.widget.TextView;

import com.jxs.android.sxyw.weiget.TopBar;

public class StatecraftDetail extends AbstractActivity {
	private TextView location_longitude_display, location_latitude_display, location_elevation_display;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		initTopBar(savedInstanceState, R.layout.location_detail);
		location_longitude_display = (TextView) findViewById(R.id.location_longitude_display);
		location_latitude_display = (TextView) findViewById(R.id.location_latitude_display);
		location_elevation_display = (TextView) findViewById(R.id.location_elevation_display);

		if (null != getIntent() && null != getIntent().getExtras()) {
			location_longitude_display.setText("经度:" + getIntent().getExtras().getString("longitude"));
			location_latitude_display.setText("纬度:" + getIntent().getExtras().getString("latitude"));
			location_elevation_display.setText("海拔:" + getIntent().getExtras().getString("elevation"));
		}

	}

	@Override
	public void topBarLogic(TopBar topBar) {
		topBar.hindBtn();
		topBar.setTitle(R.string.location_submit_title_label);
		initTopBarReturn(topBar);
		topBar.setLogicBtnText("经纬度信息");
	}

}
